﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.ServiceProcess;
using System.Text;
using System.Runtime.Remoting;
using System.Runtime.Remoting.Channels;
using System.Runtime.Remoting.Channels.Tcp;

namespace JYService
{
    partial class JYService : ServiceBase
    {
        public JYService()
        {
            InitializeComponent();
        }

        protected override void OnStart(string[] args)
        {
            RemotingConfiguration.Configure(System.IO.Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory, ("JYService.exe.config")), false);  
        }

        protected override void OnStop()
        {
            Console.Write("aksdjf");
        }
    }
}
